<!--
 * @Author: zww
 * @Date: 2021-06-25 14:30:59
 * @LastEditTime: 2021-06-25 14:51:59
 * @LastEditors: Please set LastEditors
 * @Description: 03-vue组件化开发 01-注册组件
 * @FilePath: \cloneStudy\VUEDEMO\03-vue组件化开发\01.组件注册.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
</head>
<div id="app">
    <ol>
        <!-- 创建一个todo-item组件实例 -->
        <todoimen></todoimen>
    </ol>
</div>

<body>
    <script>
        // 定义一个名为todo-item的新组件
        Vue.component(todoitem, {
                template: '<li>这是一个测试</li>'
            })
            // 基于这个组件构建另一个组件的模板
        var app = new Vue({
            el: "#app",
        })
    </script>
</body>

</html>